All Functions of Week 10

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

ggplot

{GGPLOT2}

Create a ggplot graph

ylab

{GGPLOT2}

Label the y axis (ggplot)

filter

{dplyr}

Filter out rows of a data frame according to logical vector

geom_segment

{GGPLOT2}

Generates a line segment or curve

library

{base}

Load an R package

sample_n

{dplyr}

Sample a number of observations from a data frame

c

{base}

Combine values/vectors into a vector

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

stat_ecdf

{GGPLOT2}

Compute empirical cumulative distribution

sqrt

{stats}

Square root

set.seed

{base}

Initialise a pseudorandom number generator.

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

theme

{GGPLOT2}

Set theme for GGPLOT2

sd

{stats}

Get standard deviation of a vector

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

as.numeric

{base}

Coerce a vector to numeric

mean

{base}

Get mean of a vector

element_text

{GGPLOT2}

Customise text in GGPLOT2

mutate

{dplyr}

Modify/create a column in a data frame

geom_bar

{GGPLOT2}

Generates a bar chart

cut

{base}

Convert Numeric to Factor

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

setwd

{base}

Set Working Directory

summary

{base}

Obtain summary statistics or detailed regression output

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

ecdf

{stats}

Compute an empirical cumulative distribution function

The end!